import request from '@/utils/request'

// 查询喷洒农药记录列表
export function listPestCrop(query) {
  return request({
    url: '/ncpsy/pestCrop/list',
    method: 'get',
    params: query
  })
}

// 查询喷洒农药记录详细
export function getPestCrop(pesticideCropId) {
  return request({
    url: '/ncpsy/pestCrop/' + pesticideCropId,
    method: 'get'
  })
}

// 新增喷洒农药记录
export function addPestCrop(data) {
  return request({
    url: '/ncpsy/pestCrop',
    method: 'post',
    data: data
  })
}

// 修改喷洒农药记录
export function updatePestCrop(data) {
  return request({
    url: '/ncpsy/pestCrop',
    method: 'put',
    data: data
  })
}

// 删除喷洒农药记录
export function delPestCrop(pesticideCropId) {
  return request({
    url: '/ncpsy/pestCrop/' + pesticideCropId,
    method: 'delete'
  })
}
